<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>

<div class="row" style="margin-top: 20px; padding-left: 20px;">
    <div class="form-group form-inline col-sm-6">
        <label class="">名称：</label>
        <input class="form-control" type="text" name="ruleDetailName" value="${ruleDetail.ruleDetailName }" placeholder="请输入名称">
    </div>
    <div class="form-group form-inline col-sm-6">
        <label class="">频率：</label>
        <select class="form-control" name="cycle" style="width:179px;">
			<option value="">---请选择---</option>
			<c:forEach items="${cycles}" var="cycle">
				<c:choose>
			   		<c:when test="${ruleDetail.ruleCycle eq cycle.val}"> 
			   			<option value="${cycle.val}" selected="selected">${cycle.name}</option> 
			   		</c:when>
			   		<c:otherwise> 
			   			<option value="${cycle.val}">${cycle.name}</option>
			   		</c:otherwise>
				</c:choose>
			</c:forEach>
		</select> 
    </div>
</div>
<div class="row" style="margin-top: 20px; padding-left: 20px;">
    <div class="form-group form-inline col-sm-6">
      	<label class="">次数：</label>
		<select class="form-control" name="executionTimes" style="width:179px;">
			<option value="">---请选择---</option>
			<c:forEach items="${executionTimes}" var="time">
				<c:choose>
			   		<c:when test="${ruleDetail.executionTimes eq time.val}"> 
			   			<option value="${time.val}" selected="selected">${time.name}</option>
			   		</c:when>
			   		<c:otherwise> 
			   			<option value="${time.val}">${time.name}</option>
			   		</c:otherwise>
				</c:choose>
			</c:forEach>
		</select> 
    </div>
    <div class="form-group form-inline col-sm-6">
        <label class="">是否有效：</label>
        <c:choose>
	   		<c:when test="${ruleDetail.isActive eq 1}"> 
	   			 <input name="isActive" id="isActive" type="checkbox" value="1" checked="checked">
	   		</c:when>
	   		<c:otherwise> 
	   			 <input name="isActive" id="isActive" type="checkbox" value="1">
	   		</c:otherwise>
		</c:choose>
    </div>
</div>
<div class="row" style="margin-top: 20px; padding-left: 20px;">
    <div class="form-group form-inline col-sm-6">
        <label class="">创建日期：</label>
        <input name="created" id="created" type="text" value="${ruleDetail.createDateTiem}" readonly="readonly">
    </div>
    <div class="form-group form-inline col-sm-6">
        <label class="">修改日期：</label>
        <input name="modified" id="modified" type="text" value="${ruleDetail.modifyDateTime}" readonly="readonly">
    </div>
</div>
<div class="row" style="margin-top: 20px; padding-left: 20px;">
    <div class="form-group form-inline col-sm-6">
        <label class="">创建人：</label>
        <input class="form-control" type="text" name="creator" value="${ruleDetail.creator}" readonly="readonly" disabled="true">
        <input type="hidden" name="creatorId" value="${ruleDetail.creatorId}">
    </div>
    <div class="form-group form-inline col-sm-6">
        <label class="">修改人：</label>
        <input class="form-control" type="text" name="modifier" value="${ruleDetail.modifier}" readonly="readonly" disabled="true">
        <input type="hidden" name="modifierId" value="${ruleDetail.modifierId}">
    </div>
</div>
<input type="hidden" name="irdId" value="${ruleDetail.irdId}">
